#{extends 'main.html' /}
#{set title:'Home' /}

<div id="content">

<h3>Welcome ${user.m4fcityProfile.firstName},<span> you have written ${posts.size()?: 'no'} ${posts.pluralize(messages.get('post'), messages.get('posts'))} so far</span></h3>


#{list items:posts, as:'post'}
<p class="post ${post_parity}">
<a href="@{PostController.form(post.id)}">${post.title}</a>
</p>
#{/list}
<p>
#{a @PostController.form()}New Post#{/a}
</p>
</div>